//
//  TuijianCollectionViewCell.m
//  GentlemanAnime
//
//  Created by dlios on 15-7-4.
//  Copyright (c) 2015年 lanou3g.com 蓝欧科技. All rights reserved.
//

#import "TuijianCollectionViewCell.h"

@implementation TuijianCollectionViewCell

- (void)dealloc
{
    [_tuView release];
    [_picImageView release];
    [_tuLabel release];
    [super dealloc];
}

- (instancetype)initWithFrame:(CGRect)frame
{
    self = [super initWithFrame:frame];
    if (self) {
        
        self.tuView = [[UIView alloc] initWithFrame:CGRectMake(0, 0, self.contentView.frame.size.width, self.contentView.frame.size.width * 90 / 65)];
        self.tuView.backgroundColor = [UIColor whiteColor];
        self.tuView.layer.borderWidth = 1;
        self.tuView.layer.borderColor = [[UIColor colorWithWhite:0.581 alpha:1.000] CGColor];
        [self.contentView addSubview:self.tuView];
        [_tuView release];
        
        self.picImageView = [[UIImageView alloc] initWithFrame:CGRectMake(2, 2, self.contentView.frame.size.width - 4, self.contentView.frame.size.width * 90 / 65 - 4)];
        [self.tuView addSubview:self.picImageView];
        [_picImageView release];
        
        self.tuLabel = [[UILabel alloc] initWithFrame:CGRectMake(0, self.contentView.frame.size.width * 90 / 65, self.contentView.frame.size.width, self.contentView.frame.size.width * 20 / 65)];
        self.tuLabel.textAlignment = NSTextAlignmentCenter;
        self.tuLabel.font = [UIFont systemFontOfSize:12];
        [self.contentView addSubview:self.tuLabel];
        [_tuLabel release];
        
    }
    return self;
}


/*
// Only override drawRect: if you perform custom drawing.
// An empty implementation adversely affects performance during animation.
- (void)drawRect:(CGRect)rect {
    // Drawing code
}
*/

@end
